// import router from '@/router'
const getters = {
  sidebar: state => state.app.sidebar, // 取app模块属性
  device: state => state.app.device,
  token: state => state.user.token, // 取user模块属性
  userId: state => state.user.userInfo.userId, // useId快捷访问方式
  avatar: state => state.user.userInfo.staffPhoto, // 头像
  name: state => state.user.userInfo.username, // 用户名称
  routes: state => state.user.routes, // 路由访问信息
  company: state => state.user.userInfo.company, // 公司信息
  departmentName: state => state.user.userInfo.departmentName // 组织部名称
}
// getters便捷访问
export default getters
